.class Lcom/netease/newsreader/view/ImageViewer$2;
.super Ljava/lang/Object;
.source "ImageViewer.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/view/ImageViewer;->onUp()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/view/ImageViewer;

.field private final synthetic val$incrementPerMs:F

.field private final synthetic val$start:I

.field private final synthetic val$startTime:J


# direct methods
.method constructor <init>(Lcom/netease/newsreader/view/ImageViewer;JIF)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/view/ImageViewer$2;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    iput-wide p2, p0, Lcom/netease/newsreader/view/ImageViewer$2;->val$startTime:J

    iput p4, p0, Lcom/netease/newsreader/view/ImageViewer$2;->val$start:I

    iput p5, p0, Lcom/netease/newsreader/view/ImageViewer$2;->val$incrementPerMs:F

    .line 414
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    const/high16 v6, 0x4348

    .line 417
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    .line 418
    .local v1, now:J
    iget-wide v4, p0, Lcom/netease/newsreader/view/ImageViewer$2;->val$startTime:J

    sub-long v4, v1, v4

    long-to-float v4, v4

    invoke-static {v6, v4}, Ljava/lang/Math;->min(FF)F

    move-result v0

    .line 419
    .local v0, currentMs:F
    iget v4, p0, Lcom/netease/newsreader/view/ImageViewer$2;->val$start:I

    int-to-float v4, v4

    iget v5, p0, Lcom/netease/newsreader/view/ImageViewer$2;->val$incrementPerMs:F

    mul-float/2addr v5, v0

    sub-float/2addr v4, v5

    iget-object v5, p0, Lcom/netease/newsreader/view/ImageViewer$2;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v5}, Lcom/netease/newsreader/view/ImageViewer;->access$1(Lcom/netease/newsreader/view/ImageViewer;)I

    move-result v5

    int-to-float v5, v5

    sub-float v3, v4, v5

    .line 420
    .local v3, target:F
    iget-object v4, p0, Lcom/netease/newsreader/view/ImageViewer$2;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    float-to-int v5, v3

    invoke-static {v4, v5}, Lcom/netease/newsreader/view/ImageViewer;->access$2(Lcom/netease/newsreader/view/ImageViewer;I)V

    .line 421
    cmpg-float v4, v0, v6

    if-gez v4, :cond_0

    .line 422
    iget-object v4, p0, Lcom/netease/newsreader/view/ImageViewer$2;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-virtual {v4, p0}, Lcom/netease/newsreader/view/ImageViewer;->post(Ljava/lang/Runnable;)Z

    .line 424
    :cond_0
    return-void
.end method
